import request from '@/utils/request'

export function ocr(data) {
  return request({
    url: '/tool/recognize/ocr',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    data: data,
    timeout: 20000
  })
}

export function asr(data) {
  return request({
    url: '/tool/recognize/asr',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    data: data,
    timeout: 20000
  })
}

